// app.js
App({  
    globalData: {  
      wrongQuestions: [] ,// 初始化答错问题集合  
      collectedQuestions:[],
      num: 80,
    },  
   
    // 可以添加方法来操作 wrongQuestions，例如添加问题  
    addWrongQuestion: function(question) {  
      this.globalData.wrongQuestions.push(question);  
    },  
    
    // 获取答错问题集合  
    getWrongQuestions: function() {  
      return this.globalData.wrongQuestions;  
    },  
  });

const appInstance = getApp();
const wrongQuestions = appInstance.getWrongQuestions();
console.log(wrongQuestions);